package com.example.administrator.newfragmentation;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.example.administrator.newfragmentation.activity.simple.SimpleActivity;
import com.example.administrator.newfragmentation.activity.wx.WxMainActivity;
import com.example.administrator.newfragmentation.activity.zhihu.ZhiHuMainActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class MainActivity extends AppCompatActivity {

    @Bind(R.id.tv_btn_flow)
    TextView tvBtnFlow;
    @Bind(R.id.tv_btn_wechat)
    TextView tvBtnWechat;
    @Bind(R.id.tv_btn_zhihu)
    TextView tvBtnZhihu;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_btn_flow, R.id.tv_btn_wechat, R.id.tv_btn_zhihu})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_btn_flow:
                startActivity(new Intent(MainActivity.this, SimpleActivity.class));
                break;
            case R.id.tv_btn_wechat:
                startActivity(new Intent(MainActivity.this, WxMainActivity.class));
                break;
            case R.id.tv_btn_zhihu:
                startActivity(new Intent(MainActivity.this, ZhiHuMainActivity.class));
                break;
        }
    }
}
